﻿@model Model.AppUserList
@{
    ViewBag.Title = "GoodsInfoManage";
    Layout = "~/Views/Shared/_JQBaseLayOut.cshtml";
}
@using Model

@section JQscriptSection{
    <script src="../../Scripts/viewsScript/GoodsInfoManage/GoodsInfoManage.js" type="text/javascript"></script>
    <script src="../../Scripts/viewsScript/Common/MyDialog.js" type="text/javascript"></script>
    <script src="../../Scripts/jqueryeasyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('#lookupType').combobox('setValue', '0');
            InitGrid();

        });
    </script>
}

<body style="background-color: ButtonFace; font-size: 17px">
    <div class="easyui-panel" title="查询条件" style="height: 130px; padding: 5px; background: #fafafa; width: 1700px;">
        <form id="query" method="post">
            <table>
                <tr>
                    <td>商品编号:
                    </td>
                    <td>
                        <input type="hidden" id="selectList" name="selectList" />
                        <input id="txtGoodsCode" name="txtGoodsCode" style="width: 154px" />
                    </td>
                    <td>商品名称:
                    </td>
                    <td>
                        <input id="txtGoodsName" name="txtGoodsName" style="width: 154px" />
                    </td>
                    <td>库位名称:
                    </td>
                    <td>
                        <input id="lookupType" class="easyui-combobox" name="lookupType" style="width: 155px;" data-options="required:true,valueField:'FIELDVALUE',textField:'LOOKUP',url:'@Url.Action("GetGoodsLookUpInfo", "GoodsInfoManage", new { isDefault = true, defaultValue = "全部" })',editable:false">
                    </td>
                    <td></td>
                    <td>
                        <a id="btnSerach" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'" onclick="InitGrid();">查询</a>

                    </td>

                </tr>
            </table>
        </form>
    </div>
    <div>
        <table id="tab_list">
        </table>
    </div>

    <div id="dlg" class="easyui-dialog" style="width: 620px; height: 200px; top: 300px; left: 400px; padding: 2px"
        data-options="closed:true,buttons:'#dlg-buttons',modal:true">
        <form id="location" method="post">
            <table>
                <tr>
                    <td>商品编码:
                    </td>
                    <td>
                        <input id="hiddenGoodsCode" name="hiddenGoodsCode" type="hidden" />
                        <input id="txtGOODSCODE" name="txtGOODSCODE" maxlength="30" style="width: 154px;" />
                    </td>
                    <td>商品名称:
                    </td>
                    <td colspan="2">
                        <input id="txtGOODSNAME" name="txtGOODSNAME" style="width: 184px" />
                    </td>
                </tr>
                <tr>
                    <td>库位:
                    </td>
                    <td>
                        <input id="lookupTypes" class="easyui-combobox" name="lookupTypes" style="width: 155px;" data-options="required:true,valueField:'FIELDVALUE',textField:'LOOKUP',url:'@Url.Action("GetGoodsLookUpInfo", "GoodsInfoManage", new { isDefault = true, defaultValue = "全部" })',editable:false">
                    </td>
                    <td>自定义库位:
                    </td>
                    <td colspan="2">
                        <input id="CustomCELLNO" class="easyui-combobox" name="CustomCELLNO" style="width: 184px;" data-options="required:true,valueField:'FIELDVALUE',textField:'LOOKUP',url:'@Url.Action("GetGoodsCustomLookUpInfo", "GoodsInfoManage", new { isDefault = true, defaultValue = "全部" })',editable:false">
                    </td>
                </tr>
                <tr>
                    <td>净含量:
                    </td>
                    <td>
                        <input id="txtGoodsJhl" name="txtGoodsJhl" class="easyui-validatebox" style="width: 154px" validtype="floatOrInt['#txtGoodsJhl']" />
                    </td>
                    <td>可售库存占比:
                    </td>
                    <td>
                        <input id="txtSaleStockQTY" name="txtSaleStockQTY" class="easyui-validatebox" style="width: 184px" validtype="floatOrInt['#txtSaleStockQTY']" />
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <a id="btnSave" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save'" onclick="saveData()">保存</a>
                    </td>
                </tr>
            </table>
        </form>
    </div>
    <div id="p2" class="easyui-dialog" style="width: 620px; height: 200px; top: 300px; left: 400px; padding: 2px"
        data-options="closed:true,buttons:'#dlg-buttons',modal:true">
        <form id="location_batch" method="post">
            <table>
                <tr>

                    <td>自定义库位:
                    </td>
                    <td colspan="2">
                           <input id="hiddenGoodsCodeBatch" name="hiddenGoodsCodeBatch" type="hidden" />
                        <input id="CustomCELLNO_batch" class="easyui-combobox" name="CustomCELLNO_batch" style="width: 155px;" data-options="required:true,valueField:'FIELDVALUE',textField:'LOOKUP',url:'@Url.Action("GetGoodsCustomLookUpInfo", "GoodsInfoManage", new { isDefault = true, defaultValue = "全部" })',editable:false">
                    </td>
                </tr>

                <tr>
                    <td></td>
                    <td>
                        <a id="btnSave_batch" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save'" onclick="saveDataAll()">确定</a>
                    </td>
                </tr>
            </table>
        </form>
    </div>

</body>


